package com.ruoyi.report.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 报表数据集对象 report_dataset
 * 
 * @author sunyan
 * @date 2022-03-09
 */
public class ReportDataset extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 数据集名称 */
    @Excel(name = "数据集名称")
    private String datasetName;

    /** 数据集编码 */
    @Excel(name = "数据集编码")
    private String datasetCode;

    /** sql语句或者api地址 */
    @Excel(name = "sql语句或者api地址")
    private String sqlApiString;

    /** 0 sql 1 api */
    @Excel(name = "0 sql 1 api")
    private String sqlApiType;

    /** 字段数据 */
    @Excel(name = "字段数据")
    private String datasetData;

    @Excel(name = "json数据")
    private String jsonData;

    /** 数据源的id */
    private Long dataSourceId;

    /** 请求方式 */
    private String requestType;

    /** 请求参数 */
    private String requestQuery;

    /** 是否集合 */
    private String isSet;

    /** 是否分页 */
    private String isPage;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDatasetName(String datasetName) 
    {
        this.datasetName = datasetName;
    }

    public String getDatasetName() 
    {
        return datasetName;
    }
    public void setDatasetCode(String datasetCode) 
    {
        this.datasetCode = datasetCode;
    }

    public String getDatasetCode() 
    {
        return datasetCode;
    }
    public void setSqlApiString(String sqlApiString) 
    {
        this.sqlApiString = sqlApiString;
    }

    public String getSqlApiString() 
    {
        return sqlApiString;
    }
    public void setSqlApiType(String sqlApiType) 
    {
        this.sqlApiType = sqlApiType;
    }

    public String getSqlApiType() 
    {
        return sqlApiType;
    }
    public void setDatasetData(String datasetData) 
    {
        this.datasetData = datasetData;
    }

    public String getDatasetData() 
    {
        return datasetData;
    }

    public String getRequestType() {
        return requestType;
    }

    public String getJsonData() { return jsonData; }

    public void setJsonData(String jsonData) { this.jsonData = jsonData; }

    public void setRequestType(String requestType) {
        this.requestType = requestType;
    }

    public String getRequestQuery() {
        return requestQuery;
    }

    public void setRequestQuery(String requestQuery) {
        this.requestQuery = requestQuery;
    }

    public String getIsSet() {
        return isSet;
    }

    public void setIsSet(String isSet) {
        this.isSet = isSet;
    }

    public String getIsPage() {
        return isPage;
    }

    public void setIsPage(String isPage) {
        this.isPage = isPage;
    }

    public Long getDataSourceId() {
        return dataSourceId;
    }

    public void setDataSourceId(Long dataSourceId) {
        this.dataSourceId = dataSourceId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("id", id)
                .append("datasetName", datasetName)
                .append("datasetCode", datasetCode)
                .append("sqlApiString", sqlApiString)
                .append("sqlApiType", sqlApiType)
                .append("datasetData", datasetData)
                .append("jsonData", jsonData)
                .append("dataSourceId", dataSourceId)
                .append("requestType", requestType)
                .append("requestQuery", requestQuery)
                .append("isSet", isSet)
                .append("isPage", isPage)
                .toString();
    }
}
